package cn.terminus.client.customer.contractselldefylatedeliveryinfo.service;

import cn.terminus.client.customer.contractselldefylatedeliveryinfo.param.ContractSellDefyLateDeliveryInfoNewParam;
import cn.terminus.client.customer.contractselldefylatedeliveryinfo.param.ContractSellDefyLateDeliveryInfoEditParam;
import cn.terminus.client.customer.contractselldefylatedeliveryinfo.param.ContractSellDefyLateDeliveryInfoQueryParam;
import cn.terminus.client.customer.contractselldefylatedeliveryinfo.param.ContractSellDefyLateDeliveryInfoDeleteParam;
import cn.terminus.client.customer.contractselldefylatedeliveryinfo.param.ContractSellDefyLateDeliveryInfoGetsParam;
import cn.terminus.client.customer.contractselldefylatedeliveryinfo.result.ContractSellDefyLateDeliveryInfoResult;

import cn.terminus.result.common.result.TerminusResult;
import cn.terminus.result.common.page.TerminusPageAble;
import cn.terminus.result.common.page.TerminusPageInfo;
import cn.terminus.result.common.exception.DataAccessException;
import cn.terminus.result.common.exception.ServiceException;
import cn.terminus.result.common.context.TerminusCallContext;

import java.util.List;

/**
 * 合同售卖交付违约(ContractSellDefyLateDeliveryInfo)表服务接口
 *
 * @author makejava
 * @since 2021-07-21 11:17:58
 */
public interface ContractSellDefyLateDeliveryInfoService {

    /**
     * 新增
     *
     * @param param
     * @param context
     * @return
     * @throws ServiceException
     */
    TerminusResult<String> add(ContractSellDefyLateDeliveryInfoNewParam param, TerminusCallContext context) throws ServiceException;

    /**
     * 更新
     *
     * @param param
     * @param context
     * @return
     * @throws ServiceException
     */
    TerminusResult<Boolean> update(ContractSellDefyLateDeliveryInfoEditParam param, TerminusCallContext context) throws ServiceException;


    /**
     * gets
     *
     * @param param
     * @param context
     * @return
     * @throws ServiceException
     */
    TerminusResult<List<ContractSellDefyLateDeliveryInfoResult>> gets(ContractSellDefyLateDeliveryInfoGetsParam param, TerminusCallContext context) throws ServiceException;

    /**
     * 删除
     *
     * @param param
     * @param context
     * @return
     * @throws ServiceException
     */
    TerminusResult<Boolean> delete(ContractSellDefyLateDeliveryInfoDeleteParam param, TerminusCallContext context) throws ServiceException;

    /**
     * 查询
     *
     * @param param
     * @param context
     * @return
     * @throws ServiceException
     */
    TerminusResult<List<ContractSellDefyLateDeliveryInfoResult>> query(ContractSellDefyLateDeliveryInfoQueryParam param, TerminusCallContext context) throws ServiceException;

    /**
     * 分页查询
     *
     * @param param
     * @param page
     * @param context
     * @return
     * @throws ServiceException
     */
    TerminusResult<TerminusPageAble<ContractSellDefyLateDeliveryInfoResult>> page(ContractSellDefyLateDeliveryInfoQueryParam param, TerminusPageInfo page, TerminusCallContext context) throws ServiceException;
}
